package com.example.hospitalsystem.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.hospitalsystem.pojo.dto.department.AddDepartmentDto;
import com.example.hospitalsystem.pojo.dto.department.DepartmentPageQueryDto;
import com.example.hospitalsystem.pojo.entity.Department;
import com.example.hospitalsystem.result.Result;

import java.util.List;

public interface DepartmentService extends IService<Department> {

    public Result<Object> getAllDepartmentInfo(DepartmentPageQueryDto departmentPageQueryDto);

    public Result<Object> addDepartnment(AddDepartmentDto addDepartmentDto);

    public Result<Object> deleteDepartment(int id);

    Result<Object> getDepartmentInfoById(Integer departmentId);

    List<Department> getDepartmentList();

    List<Department> searchDepartment(String key);
}
